package com.juicygames.framework.touch;

import android.view.MotionEvent;

import com.juicygames.framework.GameAction;
import com.juicygames.framework.type.Point;

public abstract class AbstractTouchAction extends GameAction {
	
	private MotionEvent event;
	private float x;
	private float y;
	
	protected AbstractTouchAction(MotionEvent event) {
		this.event = event;
		this.x = event.getX();
		this.y = event.getY();
	}
	
	public MotionEvent getEvent() {
		return event;
	}
	
	public Point getPoint() {
		return new Point(x,y);
	}
	
	public float getX() {
		return x;
	}
	
	public float getY() {
		return y;
	}

	protected void setEvent(MotionEvent event) {
		this.event = event;
	}

	protected void setX(float x) {
		this.x = x;
	}

	protected void setY(float y) {
		this.y = y;
	}

}
